<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSearch extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('search', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('keyword',100);
			$table->string('ip',45);
			$table->string('city',20)->nullable();
			$table->string('location',50)->nullable();
			$table->string('country',10)->nullable();
			$table->string('accesscode',10);
			$table->boolean('notUsed')->default(false);
			$table->string('charname',30)->nullable();

			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('search');
	}

}
